package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 客户联系人
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_linkman")
@ApiModel(value="CrmLinkman对象", description="客户联系人")
public class CrmLinkman extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "客户ID")
    @TableField("crm_id")
    private Integer crmId;

    @ApiModelProperty(value = "客户名称")
    @TableField("crm_name")
    private String crmName;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "性别")
    @TableField("gender")
    private String gender;

    @ApiModelProperty(value = "拼音码")
    @TableField("letter_code")
    private String letterCode;

    @ApiModelProperty(value = "生日")
    @TableField("birthday")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd" )
    private LocalDate birthday;

    @ApiModelProperty(value = "部门")
    @TableField("dept")
    private String dept;

    @ApiModelProperty(value = "职务")
    @TableField("position")
    private String position;

    @ApiModelProperty(value = "办公电话")
    @TableField("office_phone")
    private String officePhone;

    @ApiModelProperty(value = "手机")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "是否关键人_KP(0否1是)")
    @TableField("is_main")
    private Boolean isMain;

    @ApiModelProperty(value = "电子邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "QQ号")
    @TableField("qq")
    private String qq;

    @ApiModelProperty(value = "微信")
    @TableField("weixin")
    private String weixin;

    @ApiModelProperty(value = "联系地址")
    @TableField("contact_address")
    private String contactAddress;

    @ApiModelProperty(value = "爱好")
    @TableField("hobby")
    private String hobby;

    @ApiModelProperty(value = "忌讳")
    @TableField("taboo")
    private String taboo;

    @ApiModelProperty(value = "描述/备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "状态(0:正常 1:删除 2：停用)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "自定义字段数据")
    @TableField("define_fields")
    private String defineFields;


    @ApiModelProperty(value = "是否外呼任务执行中")
    @TableField("is_tasking")
    private Boolean isTasking;

    @ApiModelProperty(value = "外呼任务ID")
    @TableField("crm_task_id")
    private Boolean crmTaskId;


}
